//面包屑
const path = ['销售管理', '定制订单管理', {
	label: '定制订单',
	name: 'customizeOrder'
}, '定制订单详情'];
const filterOption = {
	items: [{
			label: "关键字",
			type: "input",
			data: undefined,
			placeholder: "订单编号/售中单号/定制编码/收件人/手机号/用户ID",
			value: undefined,
			key: "a1"
		},
		{
			label: "售中类型",
			type: "dropdown",
			data: [{
					label: "常规售后",
					value: "1"
				},
				{
					label: "升级换款",
					value: "2"
				}
			],
			placeholder: "请选择",
			value: undefined,
			key: "a3"
		},
		{
			label: "订单状态",
			type: "dropdown",
			data: [{
					label: "常规售后",
					value: "1"
				},
				{
					label: "升级换款",
					value: "2"
				}
			],
			placeholder: "请选择",
			value: undefined,
			key: "a31"
		},
		{
			label: "售中状态",
			type: "dropdown",
			data: [{
					label: "常规售后",
					value: "1"
				},
				{
					label: "升级换款",
					value: "2"
				}
			],
			placeholder: "请选择",
			value: undefined,
			key: "a31"
		},
		{
			label: "销售渠道",
			type: "dropdown",
			data: [{
					label: "常规售后",
					value: "1"
				},
				{
					label: "升级换款",
					value: "2"
				}
			],
			placeholder: "请选择",
			value: undefined,
			key: "a31"
		},
		{
			label: "销售人员",
			type: "dropdown",
			data: [{
					label: "常规售后",
					value: "1"
				},
				{
					label: "升级换款",
					value: "2"
				}
			],
			placeholder: "请选择",
			value: undefined,
			key: "a31"
		},
		{
			label: "发货方式",
			type: "dropdown",
			data: [{
					label: "常规售后",
					value: "1"
				},
				{
					label: "升级换款",
					value: "2"
				}
			],
			placeholder: "请选择",
			value: undefined,
			key: "a31"
		},
		{
			label: "店铺编号",
			type: "input",
			data: undefined,
			placeholder: "",
			value: undefined,
			key: "a2"
		},
		{
			label: "下单时间",
			type: "datetimerange",
			data: undefined,
			placeholder: "请选择",
			value: undefined,
			key: "a11"
		},
		{
			label: "售中申请时间",
			type: "datetimerange",
			data: undefined,
			placeholder: "请选择",
			value: undefined,
			key: "a12"
		},
	],
	btnGroup: [{
			label: "查询",
			type: "search"
		},
		{
			label: "清除",
			type: "clear"
		}
	],
	close: true
};

const tabFormInline = [];
const tableFormInline = [];
const tableFormUserMsg = [];
const sliderSelect = {
	weight:{
		value:0,
		option:[],
		sliderVal:[0,0],
	},
	/*size:{
		value:20,
		option:[],
		sliderVal:[0,0],
	}*/
}
const filterOption2 = {
	items: [{
		label: "销售分类",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "origin"
    },
    {
		label: "系列",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		filterable:true,
		value: undefined,
		key: "series"
    },
    {
		label: "款式名称",
		type: "dropdown",
		data: [],
		filterable:true,
		placeholder: "请选择",
		value: undefined,
		key: "modelName"
    },
	],

};
const filterOption3 = {
	/* 
	  手寸范围  saleStyleHandRanges
	  钻重范围  saleStyleInlaiedScoopRanges
	*/
	items: [{
		label: "主石形状",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "theMainStoneShape",
		disabled: true,
	},
	{
		label: "主石材质",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "mainStone1Material",
		disabled: true,
	},
	{
		label: "主石外观",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "theMainStoneAppearance",
		disabled: true,
	},
	{
		label: "材质",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "bracketMaterial",
		required: true,
	},
	{
		label: "手寸",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "handInch",
		required: true,
	},
	{
		label: "净度",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "cleanliness"
	},
	{
		label: "对称",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "symmetric"
	},
	{
		label: "抛光",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "polishing"
	},
	{
		label: "链长",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "startChainLength"
	},
	{
		label: "颜色",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "color"
	},
	{
		label: "切工",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "cut"
	},
	{
		label: "特殊定制要求",
		type: "dropdown",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "specialClaim"
	}],
	btnGroup: [{
			label: '查询',
			type: 'search'
		},
		{
			label: '清空',
			type: 'clear'
		}
	]
};
const tableHeaderData2 = [
	{
		prop:'modelName',
		label:'款式名称',
		width:'',
	},
	{
		prop:'category',
		label:'品类',
		width:'',
	},
	{
		prop:'aSeriesOfName',
		label:'系列',
		width:'',
	},
	{
		prop:'photoUrl',
		label:'图片',
		width:'',
	},
	/*{
		prop:'',
		label:'条码',
		width:'',
	},*/
	{
		prop:'handInch',
		label:'手寸',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'bracketMaterial',
		label:'材质',
		width:'',
	},
	{
		prop:'drillingWeight',
		label:'钻重',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'shape',
		label:'主石形状',
		width:'',
	},
	{
		prop:'appearance',
		label:'主石外观',
		width:'',
	},
	{
		prop:'cut',
		label:'切工',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'polishing',
		label:'抛光',
		width:'',
	},
	{
		prop:'color',
		label:'颜色',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'cleanliness',
		label:'净度',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'symmetric',
		label:'对称',
		width:'',
		sortable:'sortable',
	},
	{
		prop:'price',
		label:'价格/RMB',
		width:'140',
		sortable:'sortable',
	}
]
//分页数据
const paginationObject = {
	currentPage: 1,
	pageSize: 1,
	pageTotal: 1,
	total:1,
	num1:1,
	num2:1
}
//订单详情头部
const tab1TableHeader = [
	{
		prop:'customNumber',
		label:'定制编号',
		width:'120',
		show:true
	},
	{
		prop:'salesTypeName',
		label:'销售分类',
		width:'80',
		show:true
	},
	{
		prop:'describeWord',
		label:'描述',
		width:'240',
		show:true
	},
	{
		prop:'expectDate',
		label:'预计交期',
		width:'180',
		show:true
	},
	{
		prop:'totalPrice',
		label:'商品应付总价格',
		width:'140',
		show:true
	},
	{
		prop:'customServiceFee',
		label:'定制服务费',
		width:'120',
		show:true
	},
	{
		prop:'goodsPrice',
		label:'商品金额',
		width:'80',
		show:true
	},
	{
		prop:'count',
		label:'数量',
		width:'80',
		show:true
	},
	{
		prop:'isAddLogoWord',
		label:'外圈是否加DR LOGO',
		width:'170',
		show:true
	},
	{
		prop:'isHighWord',
		label:'是否允许高配',
		width:'140',
		show:true
	},
	{
		prop:'lettering',
		label:'刻字',
		width:'120',
		show:true
	}
	
]
const tab2TableHeader1 = [
	{
		prop:'giftNumber',
		label:'附赠品编号',
		width:'140',
		show:true
	},
	{
		prop:'giftName',
		label:'附赠品名称',
		width:'140',
		show:true
	},
	{
		prop:'createTime',
		label:'添加赠品时间',
		width:'180',
		show:true
	},
	{
		prop:'count',
		label:'数量',
		width:'80',
		show:true
	}
]
const tab2TableHeader2 = [
	{
		prop:'recipientName',
		label:'收件人姓名',
		width:'80',
		show:true
	},
	{
		prop:'recipientPhone',
		label:'联系电话',
		width:'120',
		show:true
	},
	{
		prop:'detailedAddress',
		label:'收件人地址',
		width:'140',
		show:true
	},
]

const tab3TableHeader1 = [
	{
		prop:'serialNumber',
		label:'支付流水号',
		width:'140',
		show:true
	},
	{
		prop:'paymentMethod',
		label:'支付方式',
		width:'80',
		show:true
	},
	{
		prop:'payMoney',
		label:'支付金额',
		width:'80',
		show:true
	},
	{
		prop:'createTime',
		label:'支付时间',
		width:'180',
		show:true
	},
	{
		prop:'createBy',
		label:'操作人',
		width:'80',
		show:true
	},
	{
		prop:'status',
		label:'财务确认',
		width:'80',
		show:true
	},
	{
		prop:'account',
		label:'收款账户',
		width:'140',
		show:true
	},
]
const tab3TableHeader2 = [
	{
		prop:'serialNumber',
		label:'退款流水号',
		width:'',
		show:true
	},
	{
		prop:'account',
		label:'退款账号',
		width:'',
		show:true
	},
	{
		prop:'bankDeposit',
		label:'开户行',
		width:'',
		show:true
	},
	{
		prop:'bankName',
		label:'开户人姓名',
		width:'',
		show:true
	},
	{
		prop:'payMoney',
		label:'退款金额',
		width:'',
		show:true
	},
	{
		prop:'payTime',
		label:'退款操作时间',
		width:'',
		show:true
	},
	{
		prop:'createBy',
		label:'操作人',
		width:'',
		show:true
	},
	{
		prop:'status',
		label:'财务确认',
		width:'',
		show:true
	}
]
const tab5TableHeader = [
	{
		prop:'createTime',
		label:'接待时间',
		width:'180',
		show:true
	},
	{
		prop:'content',
		label:'接待内容',
		width:'160',
		show:true
	},
	{
		prop:'supportStaff',
		label:'接待人员',
		width:'80',
		show:true
	}
	
]
const tab6TableHeader = [
	{
		prop:'saleNumber',
		label:'补购订单编号',
		width:'',
		show:true
	},
	{
		prop:'goodsName',
		label:'补购商品',
		width:'',
		show:true
	},
	{
		prop:'count',
		label:'数量',
		width:'',
		show:true
	},
	{
		prop:'createTime',
		label:'下单时间',
		width:'',
		show:true
	},
	{
		prop:'orderStatus',
		label:'订单状态',
		width:'',
		show:true
	},
	{
		prop:'createBy',
		label:'下单人',
		width:'',
		show:true
	},
]
const tab7TableHeader = [
	{
		prop:'afterSaleType',
		label:'售中类型',
		width:'',
		show:true
	},
	{
		prop:'aftersaleStatus',
		label:'售中状态',
		width:'',
		show:true
	},
	{
		prop:'payAmount',
		label:'退款金额',
		width:'',
		show:true
	},
	{
		prop:'createTime',
		label:'申请售中时间',
		width:'',
		show:true
	},
	{
		prop:'createBy',
		label:'下单人',
		width:'',
		show:true
	},
	{
		prop:'checkTime',
		label:'审核时间',
		width:'',
		show:true
	},
]
const tab8TableHeader = [
	{
		prop:'afterSaleType',
		label:'售后类型',
		width:'',
		show:true
	},
	{
		prop:'aftersaleStatus',
		label:'售后状态',
		width:'',
		show:true
	},
	{
		prop:'payAmount',
		label:'退款金额',
		width:'',
		show:true
	},
	{
		prop:'createBy',
		label:'下单人',
		width:'',
		show:true
	},
	{
		prop:'createTime',
		label:'申请售后时间',
		width:'',
		show:true
	},
	{
		prop:'checkTime',
		label:'审核时间',
		width:'',
		show:true
	},
]
//商品变更明细
const tab1ChangeHeader = [
	{
		prop:'customNumber',
		label:'定制编号',
		width:'',
		show:true
	},
	{
		prop:'ddd',
		label:'条码',
		width:'',
		show:true
	},
	{
		prop:'sss',
		label:'销售分类',
		width:'',
		show:true
	},
	{
		prop:'description',
		label:'描述',
		width:'',
		show:true
	},
	{
		prop:'expectDate',
		label:'预计交期',
		width:'',
		show:true
	},
	{
		prop:'totalPrice',
		label:'商品应付总价格',
		width:'',
		show:true
	},
	{
		prop:'customServiceFee',
		label:'定制服务费',
		width:'',
		show:true
	},
	{
		prop:'goodsPrice',
		label:'商品金额',
		width:'',
		show:true
	},
	{
		prop:'priceDifferences',
		label:'变更差价',
		width:'',
		show:true
	},
	{
		prop:'goodsWarehouse',
		label:'商品所在仓',
		width:'',
		show:true
	},
	{
		prop:'count',
		label:'数量',
		width:'',
		show:true
	},
	{
		prop:'isAddLogo',
		label:'外圈是否加DR LOGO',
		width:'',
		show:true
	},
	{
		prop:'isHigh',
		label:'是否允许高配',
		width:'',
		show:true
	},
	{
		prop:'lettering',
		label:'刻字',
		width:'',
		show:true
	},
	{
		prop:'orderType',
		label:'售中状态',
		width:'',
		show:true
	},
]
//赠品表头
const tab1ChangeHeader2 = [
	{
		prop:'commodityCode',
		label:'商品编码',
		width:'',
	},
	{
		prop:'nameOfCommodity',
		label:'赠品名称',
		width:'',
	},
	{
		prop:'ss',
		label:'所属仓库',
		width:'',
	},
	{
		prop:'dd',
		label:'可用库存',
		width:'',
	},
]
const filterOption1={
	items: [
		{
			label: "赠品名称",
			type: "input",
			data: undefined,
			placeholder: "请输入赠品名称",
			value: undefined,
			key: "commodityCode"
		},
		{
			label: "商品编码",
			type: "input",
			data: undefined,
			placeholder: "请输入商品编码",
			value: undefined,
			key: "tradeName"
		},
		{
			label: "所属仓库",
			type: "dropdown",
			data: [{
					label: "深圳世界之窗现货仓",
					value: "1"
				},
				{
					label: "深圳世界之窗现货仓2",
					value: "2"
				}
			],
			placeholder: "请选择",
			value: undefined,
			key: "a3"
		},
	],
	btnGroup: [
		{
		  label: "查询",
		  type: "search"
		},
		{
		  label: "清空",
		  type: "clear"
		}
	],
}	
//用户 收货地址
const userAddressMsg = {
	messagePhone:'',
	isNewAddress:true,
	name:'xumeng',
	phone:'',
	addressType:1,
	detailedAddress:'',
	addressArea:[]
}
//用户 自提地址
const userSelfLift = {
	takeGoodsShopCity:'',
	takeGoodsShop:'',
	time:'',
}
const options = []
const props = {
	label:'label',
	value:'code',
	children:'children'
}
//地址
const adressDialogit = {
	'id':'',
	'recipientName':'',
	'recipientPhone':'',
	'detailedAddress':''
}
//原因
const addGiftDialogit = {
	'reason':''
}
const refundStep = {
	activeStep: 0,
	step: []
};
const payInfo = {}
let Model = {
	data() {
		return {
			Model: {
				path,
				paginationObject,
				payInfo,							//支付信息
				tableFormUserMsg,
				filterOption,
				filterOption1,

				//tab
				tab1TableHeader,
				tab2TableHeader1,
				tab2TableHeader2,
				tab3TableHeader1,
				tab3TableHeader2,
				tab5TableHeader,
				tab6TableHeader,
				tab7TableHeader,
				tab8TableHeader,
				adressDialogit,
				

				tab1ChangeHeader,
				tab1ChangeHeader2,
				addGiftDialogit,					//添加赠品原因
				addGiftsSelectData:[],				//添加赠品 已选中的数组
				tableDataDialog:[],
				TableSelectData:[],
				idData:[],
				dialogForm:{},//			//支付
				dialogFormVisible:false,	//支付弹窗
				userSelfLift,
				userAddressMsg,				//新增的收货地址信息
				checkedAddressOpt:{},
				options,
				props,
				cityStore:[],
				onDialogAddress:false,		//收货地址弹窗
				onDialogself:false,			//自提弹窗
				tipsDeliveryType:false,			//快递显示提示语
				orderAfterDialog:false,
				orderChangeDialog:false,
				adressDialog:false,
				addGiftDialog:false,
				
				activeTab: '1',
				afterType:'1',
				detailDialogFlag: false,
				tabFormInline,
				tableFormInline,
				refundStep,
				editDialogFlag:false,
				editDialogFormData:[],
				editForm:{},//					//编辑
				changeGoodsDialogFlag:false,	//默认编辑商品弹窗不显示
				sliderSelect,
				filterOption2,
				filterOption3,
				tableHeaderData2,
				shouldLettering: false,
				isHighClass: false,
				isLogo: false,
				letteringContent: '',
				totleGoodCount:'',
				detailTableFrom: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				detailTableFrom2: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				detailTableFrom3: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				detailTableFrom4: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab1TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab2TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab2TableDetail2: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab3TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab3TableDetail2: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},
				tab4TableDetail1: {
					src: require('@/assets/img/icon_unfold.png'),
					flag: true
				},

			}
		}
	}
}
export default Model;
